﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	 
	<title>复审页面</title>   
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="/favicon.ico" >
	<link rel="Shortcut Icon" href="/favicon.ico" />
	
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
	

</head>
<body>
<article class="page-container">
	<!-- <form action="" method="post" class="form form-horizontal" id="form-member-mod"> -->
		
	<div class="formbody">
      <div class="formtitle"><span>基本信息</span></div>
       <ul class="forminfo">
	    <li>姓名：
	         <input name="us_name" type="text" value="${sa.empxx.us_name}" class="dfinput" style="width:150px" readonly/>
	         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
	                基本工资：
	          <input name="" type="text" value="${sa.sa_base}" class="dfinput" style="width:150px" readonly/>  <br><br>        
	                     部门：
	          <input name="" type="text" value="${sa.empxx.us_depid.de_name}" class="dfinput" style="width:150px" readonly/>
	             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 
	     &nbsp;&nbsp; 总工资：
	          <input name="" type="text" value="${sa.sa_totalmoney}" class="dfinput" style="width:150px" readonly/><i id="check"></i>
	             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;         
	               
	    </li>
      </ul>
      <div class="formtitle"><span>工资信息</span></div>
       <table class="tablelist">
    	<thead>
	    	<tr>
		        <th>项目</th>
		        <th>金额</th>
		        <th>原因</th>
	        </tr>
        </thead>
        <tbody>
	        <c:forEach items="${sa.list}"  var="s">
	         <tr>
		        <th>
		           <input type="text" name="item" value="${s.item}" class="tablelink" readonly/> 
                </th>
		        <th>
		           <input type="text" name="money" value="${s.money}" class="tablelink" readonly/> 
                </th>
		        <th>
		           <input type="text" name="comm" value="${s.comm}" class="tablelink" readonly/> 
                </th>
	         </tr> 
         </c:forEach>
       
        </tbody>     
    </table>
    </div>
    
     <div class="formbody">
     <!--  -->
      <div class="formtitle"><span>详情</span></div> 
	        <li>&nbsp;&nbsp;&nbsp;<label>备注</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	            <input type="text" name="sa_remark" value="${sa.sa_remark}" class="tablelink" readonly/>  
	        </li><br>
       </table>     
    </div>
    
     <div class="formtitle"><span>一审结果</span></div>
   
     <ul class="forminfo">
	    <li>&nbsp;&nbsp;&nbsp;<label>审核结果</label>
             <input name="results" type="text" class="tablelink" value="通过" readonly/>
	    </li>
	    <li>&nbsp;&nbsp;&nbsp;<label>审核意见</label>
	          <input name="comm" type="text" class="tablelink" value="666" readonly/>
	    </li>
	 </ul>
   </div>
   
    <div class="formtitle"><span>复审</span></div>
    <form action="salary/apply2.action" method="post" id="applyform">
     <ul class="forminfo">
	    <li><label>审批结果： <input type="hidden" name="sa_id" value="${sa.sa_id}">
            </label>
	         <input type="radio" name="results" value="通过" />通过
	         <input type="radio" name="results" value="打回"/>打回
	         <input type="radio" name="results" value="拒绝" />拒绝
	    </li>
	    <li><label>审核意见：</label>
	         <textarea name="comm"  class="textinput"/></textarea>
	    </li>
	    <li><label>&nbsp;</label>
	         <input name="" type="submit" class="btn" value="提交"/>
	    </li>
	 </ul>
    </form>
   </div>

</article>


<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	 $("#applyform").validate({
	
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "salary/apply2.action" ,
				success: function(data){
					layer.msg('提交成功!',{icon:1,time:1000});
				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					layer.msg('error!',{icon:1,time:1000});
				}
			});
			var index = parent.layer.getFrameIndex(window.name);
			//parent.$('#ok').click();
			window.parent.location.reload(); 
			parent.layer.close(index);
		}
	});  
	
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>